package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 附件对象 t_appendix
 * 
 * @author ruoyi
 * @date 2020-04-17
 */
public class Appendix extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 附件关联文档的类型 */
    @Excel(name = "附件关联文档的类型")
    private Integer docType;

    /** 附件关联文档的id */
    @Excel(name = "附件关联文档的id")
    private Long docId;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String appendixName;

    /** 附件存放位置 */
    @Excel(name = "附件存放位置")
    private String appendixLocation;

    /** 排序 */
    @Excel(name = "排序")
    private Integer appendixSort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDocType(Integer docType) 
    {
        this.docType = docType;
    }

    public Integer getDocType() 
    {
        return docType;
    }
    public void setDocId(Long docId) 
    {
        this.docId = docId;
    }

    public Long getDocId() 
    {
        return docId;
    }
    public void setAppendixName(String appendixName) 
    {
        this.appendixName = appendixName;
    }

    public String getAppendixName() 
    {
        return appendixName;
    }
    public void setAppendixLocation(String appendixLocation) 
    {
        this.appendixLocation = appendixLocation;
    }

    public String getAppendixLocation() 
    {
        return appendixLocation;
    }
    public void setAppendixSort(Integer appendixSort) 
    {
        this.appendixSort = appendixSort;
    }

    public Integer getAppendixSort() 
    {
        return appendixSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("docType", getDocType())
            .append("docId", getDocId())
            .append("appendixName", getAppendixName())
            .append("appendixLocation", getAppendixLocation())
            .append("appendixSort", getAppendixSort())
            .toString();
    }
}
